package com.saasitems.admin.model;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNull() {
            addCriterion("type_id is null");
            return (Criteria) this;
        }

        public Criteria andTypeIdIsNotNull() {
            addCriterion("type_id is not null");
            return (Criteria) this;
        }

        public Criteria andTypeIdEqualTo(Long value) {
            addCriterion("type_id =", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotEqualTo(Long value) {
            addCriterion("type_id <>", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThan(Long value) {
            addCriterion("type_id >", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("type_id >=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThan(Long value) {
            addCriterion("type_id <", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("type_id <=", value, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdIn(List<Long> values) {
            addCriterion("type_id in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotIn(List<Long> values) {
            addCriterion("type_id not in", values, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdBetween(Long value1, Long value2) {
            addCriterion("type_id between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("type_id not between", value1, value2, "typeId");
            return (Criteria) this;
        }

        public Criteria andSnIsNull() {
            addCriterion("sn is null");
            return (Criteria) this;
        }

        public Criteria andSnIsNotNull() {
            addCriterion("sn is not null");
            return (Criteria) this;
        }

        public Criteria andSnEqualTo(String value) {
            addCriterion("sn =", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotEqualTo(String value) {
            addCriterion("sn <>", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnGreaterThan(String value) {
            addCriterion("sn >", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnGreaterThanOrEqualTo(String value) {
            addCriterion("sn >=", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLessThan(String value) {
            addCriterion("sn <", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLessThanOrEqualTo(String value) {
            addCriterion("sn <=", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnLike(String value) {
            addCriterion("sn like", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotLike(String value) {
            addCriterion("sn not like", value, "sn");
            return (Criteria) this;
        }

        public Criteria andSnIn(List<String> values) {
            addCriterion("sn in", values, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotIn(List<String> values) {
            addCriterion("sn not in", values, "sn");
            return (Criteria) this;
        }

        public Criteria andSnBetween(String value1, String value2) {
            addCriterion("sn between", value1, value2, "sn");
            return (Criteria) this;
        }

        public Criteria andSnNotBetween(String value1, String value2) {
            addCriterion("sn not between", value1, value2, "sn");
            return (Criteria) this;
        }

        public Criteria andNameIsNull() {
            addCriterion("name is null");
            return (Criteria) this;
        }

        public Criteria andNameIsNotNull() {
            addCriterion("name is not null");
            return (Criteria) this;
        }

        public Criteria andNameEqualTo(String value) {
            addCriterion("name =", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotEqualTo(String value) {
            addCriterion("name <>", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThan(String value) {
            addCriterion("name >", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameGreaterThanOrEqualTo(String value) {
            addCriterion("name >=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThan(String value) {
            addCriterion("name <", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLessThanOrEqualTo(String value) {
            addCriterion("name <=", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameLike(String value) {
            addCriterion("name like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotLike(String value) {
            addCriterion("name not like", value, "name");
            return (Criteria) this;
        }

        public Criteria andNameIn(List<String> values) {
            addCriterion("name in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotIn(List<String> values) {
            addCriterion("name not in", values, "name");
            return (Criteria) this;
        }

        public Criteria andNameBetween(String value1, String value2) {
            addCriterion("name between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andNameNotBetween(String value1, String value2) {
            addCriterion("name not between", value1, value2, "name");
            return (Criteria) this;
        }

        public Criteria andVerIsNull() {
            addCriterion("ver is null");
            return (Criteria) this;
        }

        public Criteria andVerIsNotNull() {
            addCriterion("ver is not null");
            return (Criteria) this;
        }

        public Criteria andVerEqualTo(String value) {
            addCriterion("ver =", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerNotEqualTo(String value) {
            addCriterion("ver <>", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerGreaterThan(String value) {
            addCriterion("ver >", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerGreaterThanOrEqualTo(String value) {
            addCriterion("ver >=", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerLessThan(String value) {
            addCriterion("ver <", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerLessThanOrEqualTo(String value) {
            addCriterion("ver <=", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerLike(String value) {
            addCriterion("ver like", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerNotLike(String value) {
            addCriterion("ver not like", value, "ver");
            return (Criteria) this;
        }

        public Criteria andVerIn(List<String> values) {
            addCriterion("ver in", values, "ver");
            return (Criteria) this;
        }

        public Criteria andVerNotIn(List<String> values) {
            addCriterion("ver not in", values, "ver");
            return (Criteria) this;
        }

        public Criteria andVerBetween(String value1, String value2) {
            addCriterion("ver between", value1, value2, "ver");
            return (Criteria) this;
        }

        public Criteria andVerNotBetween(String value1, String value2) {
            addCriterion("ver not between", value1, value2, "ver");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNull() {
            addCriterion("description is null");
            return (Criteria) this;
        }

        public Criteria andDescriptionIsNotNull() {
            addCriterion("description is not null");
            return (Criteria) this;
        }

        public Criteria andDescriptionEqualTo(String value) {
            addCriterion("description =", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotEqualTo(String value) {
            addCriterion("description <>", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThan(String value) {
            addCriterion("description >", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
            addCriterion("description >=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThan(String value) {
            addCriterion("description <", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLessThanOrEqualTo(String value) {
            addCriterion("description <=", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionLike(String value) {
            addCriterion("description like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotLike(String value) {
            addCriterion("description not like", value, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionIn(List<String> values) {
            addCriterion("description in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotIn(List<String> values) {
            addCriterion("description not in", values, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionBetween(String value1, String value2) {
            addCriterion("description between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andDescriptionNotBetween(String value1, String value2) {
            addCriterion("description not between", value1, value2, "description");
            return (Criteria) this;
        }

        public Criteria andIsMonthIsNull() {
            addCriterion("is_month is null");
            return (Criteria) this;
        }

        public Criteria andIsMonthIsNotNull() {
            addCriterion("is_month is not null");
            return (Criteria) this;
        }

        public Criteria andIsMonthEqualTo(Integer value) {
            addCriterion("is_month =", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthNotEqualTo(Integer value) {
            addCriterion("is_month <>", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthGreaterThan(Integer value) {
            addCriterion("is_month >", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_month >=", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthLessThan(Integer value) {
            addCriterion("is_month <", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthLessThanOrEqualTo(Integer value) {
            addCriterion("is_month <=", value, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthIn(List<Integer> values) {
            addCriterion("is_month in", values, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthNotIn(List<Integer> values) {
            addCriterion("is_month not in", values, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthBetween(Integer value1, Integer value2) {
            addCriterion("is_month between", value1, value2, "isMonth");
            return (Criteria) this;
        }

        public Criteria andIsMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("is_month not between", value1, value2, "isMonth");
            return (Criteria) this;
        }

        public Criteria andMnPriceIsNull() {
            addCriterion("mn_price is null");
            return (Criteria) this;
        }

        public Criteria andMnPriceIsNotNull() {
            addCriterion("mn_price is not null");
            return (Criteria) this;
        }

        public Criteria andMnPriceEqualTo(BigDecimal value) {
            addCriterion("mn_price =", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceNotEqualTo(BigDecimal value) {
            addCriterion("mn_price <>", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceGreaterThan(BigDecimal value) {
            addCriterion("mn_price >", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("mn_price >=", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceLessThan(BigDecimal value) {
            addCriterion("mn_price <", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("mn_price <=", value, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceIn(List<BigDecimal> values) {
            addCriterion("mn_price in", values, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceNotIn(List<BigDecimal> values) {
            addCriterion("mn_price not in", values, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mn_price between", value1, value2, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mn_price not between", value1, value2, "mnPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceIsNull() {
            addCriterion("mn_original_price is null");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceIsNotNull() {
            addCriterion("mn_original_price is not null");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceEqualTo(BigDecimal value) {
            addCriterion("mn_original_price =", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceNotEqualTo(BigDecimal value) {
            addCriterion("mn_original_price <>", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceGreaterThan(BigDecimal value) {
            addCriterion("mn_original_price >", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("mn_original_price >=", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceLessThan(BigDecimal value) {
            addCriterion("mn_original_price <", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("mn_original_price <=", value, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceIn(List<BigDecimal> values) {
            addCriterion("mn_original_price in", values, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceNotIn(List<BigDecimal> values) {
            addCriterion("mn_original_price not in", values, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mn_original_price between", value1, value2, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andMnOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("mn_original_price not between", value1, value2, "mnOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andIsYearIsNull() {
            addCriterion("is_year is null");
            return (Criteria) this;
        }

        public Criteria andIsYearIsNotNull() {
            addCriterion("is_year is not null");
            return (Criteria) this;
        }

        public Criteria andIsYearEqualTo(Integer value) {
            addCriterion("is_year =", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearNotEqualTo(Integer value) {
            addCriterion("is_year <>", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearGreaterThan(Integer value) {
            addCriterion("is_year >", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_year >=", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearLessThan(Integer value) {
            addCriterion("is_year <", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearLessThanOrEqualTo(Integer value) {
            addCriterion("is_year <=", value, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearIn(List<Integer> values) {
            addCriterion("is_year in", values, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearNotIn(List<Integer> values) {
            addCriterion("is_year not in", values, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearBetween(Integer value1, Integer value2) {
            addCriterion("is_year between", value1, value2, "isYear");
            return (Criteria) this;
        }

        public Criteria andIsYearNotBetween(Integer value1, Integer value2) {
            addCriterion("is_year not between", value1, value2, "isYear");
            return (Criteria) this;
        }

        public Criteria andYyPriceIsNull() {
            addCriterion("yy_price is null");
            return (Criteria) this;
        }

        public Criteria andYyPriceIsNotNull() {
            addCriterion("yy_price is not null");
            return (Criteria) this;
        }

        public Criteria andYyPriceEqualTo(BigDecimal value) {
            addCriterion("yy_price =", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceNotEqualTo(BigDecimal value) {
            addCriterion("yy_price <>", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceGreaterThan(BigDecimal value) {
            addCriterion("yy_price >", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("yy_price >=", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceLessThan(BigDecimal value) {
            addCriterion("yy_price <", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("yy_price <=", value, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceIn(List<BigDecimal> values) {
            addCriterion("yy_price in", values, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceNotIn(List<BigDecimal> values) {
            addCriterion("yy_price not in", values, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yy_price between", value1, value2, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yy_price not between", value1, value2, "yyPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceIsNull() {
            addCriterion("yy_original_price is null");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceIsNotNull() {
            addCriterion("yy_original_price is not null");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceEqualTo(BigDecimal value) {
            addCriterion("yy_original_price =", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceNotEqualTo(BigDecimal value) {
            addCriterion("yy_original_price <>", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceGreaterThan(BigDecimal value) {
            addCriterion("yy_original_price >", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("yy_original_price >=", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceLessThan(BigDecimal value) {
            addCriterion("yy_original_price <", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("yy_original_price <=", value, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceIn(List<BigDecimal> values) {
            addCriterion("yy_original_price in", values, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceNotIn(List<BigDecimal> values) {
            addCriterion("yy_original_price not in", values, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yy_original_price between", value1, value2, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andYyOriginalPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("yy_original_price not between", value1, value2, "yyOriginalPrice");
            return (Criteria) this;
        }

        public Criteria andSortIsNull() {
            addCriterion("sort is null");
            return (Criteria) this;
        }

        public Criteria andSortIsNotNull() {
            addCriterion("sort is not null");
            return (Criteria) this;
        }

        public Criteria andSortEqualTo(Integer value) {
            addCriterion("sort =", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotEqualTo(Integer value) {
            addCriterion("sort <>", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThan(Integer value) {
            addCriterion("sort >", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortGreaterThanOrEqualTo(Integer value) {
            addCriterion("sort >=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThan(Integer value) {
            addCriterion("sort <", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortLessThanOrEqualTo(Integer value) {
            addCriterion("sort <=", value, "sort");
            return (Criteria) this;
        }

        public Criteria andSortIn(List<Integer> values) {
            addCriterion("sort in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotIn(List<Integer> values) {
            addCriterion("sort not in", values, "sort");
            return (Criteria) this;
        }

        public Criteria andSortBetween(Integer value1, Integer value2) {
            addCriterion("sort between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andSortNotBetween(Integer value1, Integer value2) {
            addCriterion("sort not between", value1, value2, "sort");
            return (Criteria) this;
        }

        public Criteria andBasePicIsNull() {
            addCriterion("base_pic is null");
            return (Criteria) this;
        }

        public Criteria andBasePicIsNotNull() {
            addCriterion("base_pic is not null");
            return (Criteria) this;
        }

        public Criteria andBasePicEqualTo(String value) {
            addCriterion("base_pic =", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicNotEqualTo(String value) {
            addCriterion("base_pic <>", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicGreaterThan(String value) {
            addCriterion("base_pic >", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicGreaterThanOrEqualTo(String value) {
            addCriterion("base_pic >=", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicLessThan(String value) {
            addCriterion("base_pic <", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicLessThanOrEqualTo(String value) {
            addCriterion("base_pic <=", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicLike(String value) {
            addCriterion("base_pic like", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicNotLike(String value) {
            addCriterion("base_pic not like", value, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicIn(List<String> values) {
            addCriterion("base_pic in", values, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicNotIn(List<String> values) {
            addCriterion("base_pic not in", values, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicBetween(String value1, String value2) {
            addCriterion("base_pic between", value1, value2, "basePic");
            return (Criteria) this;
        }

        public Criteria andBasePicNotBetween(String value1, String value2) {
            addCriterion("base_pic not between", value1, value2, "basePic");
            return (Criteria) this;
        }

        public Criteria andIsSaleIsNull() {
            addCriterion("is_sale is null");
            return (Criteria) this;
        }

        public Criteria andIsSaleIsNotNull() {
            addCriterion("is_sale is not null");
            return (Criteria) this;
        }

        public Criteria andIsSaleEqualTo(Integer value) {
            addCriterion("is_sale =", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleNotEqualTo(Integer value) {
            addCriterion("is_sale <>", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleGreaterThan(Integer value) {
            addCriterion("is_sale >", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_sale >=", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleLessThan(Integer value) {
            addCriterion("is_sale <", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleLessThanOrEqualTo(Integer value) {
            addCriterion("is_sale <=", value, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleIn(List<Integer> values) {
            addCriterion("is_sale in", values, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleNotIn(List<Integer> values) {
            addCriterion("is_sale not in", values, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleBetween(Integer value1, Integer value2) {
            addCriterion("is_sale between", value1, value2, "isSale");
            return (Criteria) this;
        }

        public Criteria andIsSaleNotBetween(Integer value1, Integer value2) {
            addCriterion("is_sale not between", value1, value2, "isSale");
            return (Criteria) this;
        }

        public Criteria andSaleDateIsNull() {
            addCriterion("sale_date is null");
            return (Criteria) this;
        }

        public Criteria andSaleDateIsNotNull() {
            addCriterion("sale_date is not null");
            return (Criteria) this;
        }

        public Criteria andSaleDateEqualTo(Date value) {
            addCriterion("sale_date =", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateNotEqualTo(Date value) {
            addCriterion("sale_date <>", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateGreaterThan(Date value) {
            addCriterion("sale_date >", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateGreaterThanOrEqualTo(Date value) {
            addCriterion("sale_date >=", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateLessThan(Date value) {
            addCriterion("sale_date <", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateLessThanOrEqualTo(Date value) {
            addCriterion("sale_date <=", value, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateIn(List<Date> values) {
            addCriterion("sale_date in", values, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateNotIn(List<Date> values) {
            addCriterion("sale_date not in", values, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateBetween(Date value1, Date value2) {
            addCriterion("sale_date between", value1, value2, "saleDate");
            return (Criteria) this;
        }

        public Criteria andSaleDateNotBetween(Date value1, Date value2) {
            addCriterion("sale_date not between", value1, value2, "saleDate");
            return (Criteria) this;
        }

        public Criteria andIsTryoutIsNull() {
            addCriterion("is_tryout is null");
            return (Criteria) this;
        }

        public Criteria andIsTryoutIsNotNull() {
            addCriterion("is_tryout is not null");
            return (Criteria) this;
        }

        public Criteria andIsTryoutEqualTo(Integer value) {
            addCriterion("is_tryout =", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutNotEqualTo(Integer value) {
            addCriterion("is_tryout <>", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutGreaterThan(Integer value) {
            addCriterion("is_tryout >", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_tryout >=", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutLessThan(Integer value) {
            addCriterion("is_tryout <", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutLessThanOrEqualTo(Integer value) {
            addCriterion("is_tryout <=", value, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutIn(List<Integer> values) {
            addCriterion("is_tryout in", values, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutNotIn(List<Integer> values) {
            addCriterion("is_tryout not in", values, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutBetween(Integer value1, Integer value2) {
            addCriterion("is_tryout between", value1, value2, "isTryout");
            return (Criteria) this;
        }

        public Criteria andIsTryoutNotBetween(Integer value1, Integer value2) {
            addCriterion("is_tryout not between", value1, value2, "isTryout");
            return (Criteria) this;
        }

        public Criteria andTryoutDayIsNull() {
            addCriterion("tryout_day is null");
            return (Criteria) this;
        }

        public Criteria andTryoutDayIsNotNull() {
            addCriterion("tryout_day is not null");
            return (Criteria) this;
        }

        public Criteria andTryoutDayEqualTo(Integer value) {
            addCriterion("tryout_day =", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayNotEqualTo(Integer value) {
            addCriterion("tryout_day <>", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayGreaterThan(Integer value) {
            addCriterion("tryout_day >", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayGreaterThanOrEqualTo(Integer value) {
            addCriterion("tryout_day >=", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayLessThan(Integer value) {
            addCriterion("tryout_day <", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayLessThanOrEqualTo(Integer value) {
            addCriterion("tryout_day <=", value, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayIn(List<Integer> values) {
            addCriterion("tryout_day in", values, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayNotIn(List<Integer> values) {
            addCriterion("tryout_day not in", values, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayBetween(Integer value1, Integer value2) {
            addCriterion("tryout_day between", value1, value2, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andTryoutDayNotBetween(Integer value1, Integer value2) {
            addCriterion("tryout_day not between", value1, value2, "tryoutDay");
            return (Criteria) this;
        }

        public Criteria andCreUserIdIsNull() {
            addCriterion("cre_user_id is null");
            return (Criteria) this;
        }

        public Criteria andCreUserIdIsNotNull() {
            addCriterion("cre_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andCreUserIdEqualTo(Long value) {
            addCriterion("cre_user_id =", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdNotEqualTo(Long value) {
            addCriterion("cre_user_id <>", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdGreaterThan(Long value) {
            addCriterion("cre_user_id >", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("cre_user_id >=", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdLessThan(Long value) {
            addCriterion("cre_user_id <", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdLessThanOrEqualTo(Long value) {
            addCriterion("cre_user_id <=", value, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdIn(List<Long> values) {
            addCriterion("cre_user_id in", values, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdNotIn(List<Long> values) {
            addCriterion("cre_user_id not in", values, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdBetween(Long value1, Long value2) {
            addCriterion("cre_user_id between", value1, value2, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreUserIdNotBetween(Long value1, Long value2) {
            addCriterion("cre_user_id not between", value1, value2, "creUserId");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeIsNull() {
            addCriterion("cre_date_time is null");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeIsNotNull() {
            addCriterion("cre_date_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeEqualTo(Date value) {
            addCriterion("cre_date_time =", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeNotEqualTo(Date value) {
            addCriterion("cre_date_time <>", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeGreaterThan(Date value) {
            addCriterion("cre_date_time >", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("cre_date_time >=", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeLessThan(Date value) {
            addCriterion("cre_date_time <", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeLessThanOrEqualTo(Date value) {
            addCriterion("cre_date_time <=", value, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeIn(List<Date> values) {
            addCriterion("cre_date_time in", values, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeNotIn(List<Date> values) {
            addCriterion("cre_date_time not in", values, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeBetween(Date value1, Date value2) {
            addCriterion("cre_date_time between", value1, value2, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andCreDateTimeNotBetween(Date value1, Date value2) {
            addCriterion("cre_date_time not between", value1, value2, "creDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdIsNull() {
            addCriterion("upd_user_id is null");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdIsNotNull() {
            addCriterion("upd_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdEqualTo(Long value) {
            addCriterion("upd_user_id =", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdNotEqualTo(Long value) {
            addCriterion("upd_user_id <>", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdGreaterThan(Long value) {
            addCriterion("upd_user_id >", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("upd_user_id >=", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdLessThan(Long value) {
            addCriterion("upd_user_id <", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdLessThanOrEqualTo(Long value) {
            addCriterion("upd_user_id <=", value, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdIn(List<Long> values) {
            addCriterion("upd_user_id in", values, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdNotIn(List<Long> values) {
            addCriterion("upd_user_id not in", values, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdBetween(Long value1, Long value2) {
            addCriterion("upd_user_id between", value1, value2, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdUserIdNotBetween(Long value1, Long value2) {
            addCriterion("upd_user_id not between", value1, value2, "updUserId");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeIsNull() {
            addCriterion("upd_date_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeIsNotNull() {
            addCriterion("upd_date_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeEqualTo(Date value) {
            addCriterion("upd_date_time =", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeNotEqualTo(Date value) {
            addCriterion("upd_date_time <>", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeGreaterThan(Date value) {
            addCriterion("upd_date_time >", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("upd_date_time >=", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeLessThan(Date value) {
            addCriterion("upd_date_time <", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeLessThanOrEqualTo(Date value) {
            addCriterion("upd_date_time <=", value, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeIn(List<Date> values) {
            addCriterion("upd_date_time in", values, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeNotIn(List<Date> values) {
            addCriterion("upd_date_time not in", values, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeBetween(Date value1, Date value2) {
            addCriterion("upd_date_time between", value1, value2, "updDateTime");
            return (Criteria) this;
        }

        public Criteria andUpdDateTimeNotBetween(Date value1, Date value2) {
            addCriterion("upd_date_time not between", value1, value2, "updDateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}